<div class="menu">
    <?php if($menu->getMenu()->getRenderTitle()): ?>
        <div class="menu-title"><b><?php echo $menu->getTitle()?></b></div>
    <?php endif; ?>
        
    <?php $options = $menu->getMenu()->getOptions() ?>
    <?php $counter = $options->count(); $i=1; ?>
    <div class="menu-options">
    <?php foreach ($options as $option): ?>
        <div class="menu-option <?php echo $menu->getMenu()->getIsVertical() ? 'vertical' : ($counter == $i ? 'horizontal last':'horizontal') ?>">
            <?php if($menu->getMenu()->getIsVertical() && $menu->getMenu()->getUsesBullet()): ?>
                <img alt="Opción"
                     src="<?php echo '/uploads/portal_'.$portal->getId().'/images/'.$menu->getMenu()->getBullet()?>">
            <?php endif; ?>
            <?php if($option->getIsLocal()): ?>
                <a href="<?php echo url_for('render_section',$option->getSection())?>" title="<?php echo $option->getSection()?>">
                    <?php echo $option->getSection()?>
                </a>
                <?php if(!$menu->getMenu()->getIsVertical() && $counter > $i): ?>
                    |
                <?php endif; ?>
            <?php else: ?>
                <a href="<?php echo $option->getLink()?>" title="<?php echo $option->getTitle()?>">
                    <?php echo $option->getTitle()?>
                </a>
                <?php if(!$menu->getMenu()->getIsVertical() && $counter > $i): ?>
                    |
                <?php endif; ?>
            <?php endif; ?>
        </div>
        <?php $i++; ?>
    <?php endforeach;?>
    </div>
</div>
